﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using strange.extensions.command.impl;

public class AddScoreCommand : EventCommand {
    [Inject]
    public ISomeModel ScoreModel { get; set; }
    public override void Execute()//执行命令
    {
        ScoreModel.Date++;
        dispatcher.Dispatch(Events.SCORE_CHANGE, ScoreModel.Date);//派发一个全局的命令来增加分数跟新UI
    }
}
